define(()=>{
    return function(goods,res,tbody){
        let str = ""
        res.forEach(val1=>{
            goods.forEach(val2=>{
                if(val1.proId===val2.id){
                    str +=  `<tr index="${val2.id}" class="cart_item">
                                <td class="view">
                                    <input type="checkbox" class="che">
                                    <div class="view">
                                        <a class="cart_item_pic" href="#">
                                        <img src="${val1.img}" alt="${val1.brand}">
                                        </a>
                                        <a class="cart_item_link" href="#">${val1.proName}
                                        </a>
                                        <p class="kind">${val1.kind}</p>
                                    </div>
                                </td>
                                <td class="price">${val1.price}</td>
                                <td class="num"><input type="number" class="setNum" value="${val2.num}"></td>
                                <td class="sum">${val2.num * val1.price}</td>
                                <td class="delete"><i class="iconfont icon-shanchu"></i></td>
                            </tr>`
                }
            })
        })
        tbody.html(str);
    }
})

